package com.cx.common.mybatisplus.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
public class BaseEntity {

    public static final String CREATE_TIME = "createTime";
    public static final String UPDATE_TIME = "updateTime";
    public static final String CREATE_BY = "createBy";
    public static final String UPDATE_BY = "updateBy";
    public static final String SYSTEM = "system";
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Long createTime;
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;
    @TableLogic(value = "1", delval = "0")
    private Byte deleted;
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
    @TableField(value = "`system`", fill = FieldFill.INSERT_UPDATE)
    private Integer system;
}
